package com.lixin.admin.server.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@TableName("lot_role")
@ApiModel("角色信息")
public class Role {
    private static final long serialVersionUID = 3744713569319021067L;

    @TableId("id")
    @ApiModelProperty("角色ID")
    private Long roleId;

    @TableField("name")
    @ApiModelProperty("角色名称")
    private String roleName;

    @TableField("created")
    @ApiModelProperty("角色创建时间")
    private LocalDateTime roleCreated;

    @TableField("updated")
    @ApiModelProperty("角色更新时间")
    private LocalDateTime roleUpdated;
}
